package com.yongqi.duocai.service.impl;

import com.yongqi.duocai.entity.OrderInfo;
import com.yongqi.duocai.entity.vo.OrderGoodsVo;
import com.yongqi.duocai.mapper.OrderInfoMapper;
import com.yongqi.duocai.service.OrderInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 夏亮辉
 * @since 2021-06-24
 */
@Service
public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo> implements OrderInfoService {

    @Autowired
    private OrderInfoMapper orderInfoMapper;

    /**
     * 批量查询订单商品详情
     * @param ids
     * @return
     */
    @Override
    public List<OrderGoodsVo> queryByIds(List<Integer> ids) {
        return orderInfoMapper.queryByIds(ids);
    }
}
